<%@ taglib prefix="s" uri="/struts-tags"%>

<div id="main-aside">
	<div class="inside">

		contenu de aside.jsp

		<s:if test="#session.context">

			<div class="nav-box">
				<s:text name="aside_box_article" />
			</div>
			<div class="nav-box">
				<s:text name="aside_box_comment" />
			</div>
			<div class="nav-box">
				<s:text name="aside_box_user" />
			</div>
			<div class="nav-box">
				<s:text name="aside_box_blog" />
			</div>

		</s:if>
		<s:else>

			<s:action name="Lire_Articles5Derniers" executeResult="false"
				namespace="/" var="listArticles" />

			<div class="posts-last-5">
				<s:iterator value="%{#listArticles.listArticles}" status="ligne">
					<div class="post-title">
						<a href="lireArticle?id=<s:property value="idArticle" />"><s:property
								value="titre" /></a>
					</div>
				</s:iterator>
			</div>
			<!-- /.posts-last-5 -->


			<s:action name="Lire_Categories" executeResult="false" namespace="/"
				var="listCategories" />

			<div class="categories">
				<s:iterator value="%{#listCategories.listCategories}" status="ligne">
					<div class="cat-title">
						<a href="">* <s:property value="nom" /></a>
					</div>
				</s:iterator>
			</div>
			<!-- /.categories -->

		</s:else>

	</div>
</div>
<!-- /#main-aside -->